<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:81:"D:\phpStudy\WWW\fastAdmin\public/../application/food\view\index\show_process.html";i:1526537432;s:64:"D:\phpStudy\WWW\fastAdmin\application\food\view\common\base.html";i:1526525827;}*/ ?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>
    
走心更走胃-<?php echo $product->name; ?>

    </title>
    <link rel="stylesheet" type="text/css" href="/static/css/index.css" />
    
<link rel="stylesheet" href="/static/css/show_process.css">

</head>

<body>
<!--头部开始-->
<header>
    <div class="logo"><img src="/static/images/logo.jpg" alt="" class="lazyload"></div>
    <div class="nav">
        <ul>
            <li><a href="/food">首页</a></li>
            <li><a href="#">关于我们</a></li>
            <li><a href="#">热量计算</a></li>
            <li><a href="food/comment">网站反馈</a></li>
        </ul>
    </div>
    <div class="search">
        <form action="/list">
            <input type="text" name="name">
        </form>
        <img src="/static/images/search.png" class="searchBtn lazyload">
    </div>
    <div class="login">
        <ul>
            <?php if(null ===\think\Session::get('user')): ?>
            <li><a href="<?php echo url('food/auth/register'); ?>">注册</a></li>
            <li><a href="<?php echo url('food/auth/login'); ?>">登录</a></li>
            <?php else: ?>
            <li style="margin-left: -20px;"><a href="#">欢迎您，<?php echo \think\Session::get('user.phone'); ?></a></li>
            <li><a href="/logout">退出</a></li>
            <?php endif; ?>
        </ul>
    </div>
</header>
<!--头部结束-->



<div class="wrapper">
    
<section class="one">
    <p><?php echo $product->name; ?></p>
    <div class="pic">
        <img src="<?php echo $product->image; ?>" style="width:640px;height:640px;border-radius: 6px;">
    </div>
    <div class="material">
        <img src="/static/images/material.jpg">
        <dl>
            <dt>主料</dt>
            <?php if(is_array($product->seasonings) || $product->seasonings instanceof \think\Collection || $product->seasonings instanceof \think\Paginator): $i = 0; $__LIST__ = $product->seasonings;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;if($item['type'] == 0): ?>
            <dd><?php echo $item->name; ?><span><?php echo $item->amount; ?>
</span></dd>
            <?php endif; endforeach; endif; else: echo "" ;endif; ?>

            <dt>辅料</dt>
            <?php if(is_array($product->seasonings) || $product->seasonings instanceof \think\Collection || $product->seasonings instanceof \think\Paginator): $i = 0; $__LIST__ = $product->seasonings;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;if($item['type'] == 1): ?>
            <dd><?php echo $item->name; ?><span><?php echo $item->amount; ?></span></dd>
            <?php endif; endforeach; endif; else: echo "" ;endif; ?>
        </dl>
    </div>
</section>
<section class="two">
    <p><img src="/static/images/process.jpg"></p>
    <dl class="left">
        <?php if(is_array($product->processes) || $product->processes instanceof \think\Collection || $product->processes instanceof \think\Paginator): $k = 0; $__LIST__ = $product->processes;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($k % 2 );++$k;if($k%2 == 1): ?>
        <dt class="process"><?php echo $item->sort; ?>.<?php echo $item->content; ?></dt>
        <dd><img src="/static/<?php echo $item->image; ?>"></dd>
        <?php endif; endforeach; endif; else: echo "" ;endif; ?>
    </dl>
    <dl class="right">
        <?php if(is_array($product->processes) || $product->processes instanceof \think\Collection || $product->processes instanceof \think\Paginator): $k = 0; $__LIST__ = $product->processes;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($k % 2 );++$k;if($k%2 == 0): ?>
        <dt class="process"><?php echo $item->sort; ?>.<?php echo $item->content; ?></dt>
        <dd><img src="/static/<?php echo $item->image; ?>"></dd>
        <?php endif; endforeach; endif; else: echo "" ;endif; ?>
    </dl>
</section>

    <footer>
        <!--底部开始-->
        <div class="line">
            <h3>走胃更走心---吃得健康又营养!</h3>
        </div>
        <p class="link">友情链接: <a href="http://life.iqiyi.com/">爱奇艺生活</a> <a href="http://www.zhms.cn/">中华美食网</a>
            <a href="http://www.pcbaby.com.cn/">太平洋亲子网</a> <a href="http://food.poco.cn/">POCO美食网</a>
            <a href="http://www.21food.cn/">食品商务网</a> <a href="http://www.mama.cn/">妈妈网</a>
            <a href="http://www.39yst.com/">三九养生堂</a> <a href="http://www.258.com/">企业服务平台</a>
            <a href="http://www.yidianzixun.com/">一点资讯</a> <a href="http://www.hc360.com/">慧聪网</a>
        </p>
        <p class="copyright">版权所有 © 2004-2019 走心更走胃 保留所有权利</p>
        <!--底部结束-->
    </footer>
</div>
<script src="/static/js/jquery-1.11.1.js"></script>
<script src="/static/js/slider.min.js"></script>
<script type="text/javascript" src="//cdn.bootcss.com/jquery.lazyload/1.9.1/jquery.lazyload.min.js" ></script>

</body>
</html>